<%= form_tag({},{:class=>"form-signin"}) do %>
     <h2 class="form-signin-heading">Register New User</h2>
     <%=render "layouts/errors"%>
     <%= text_field_tag("email",nil,{:class=>"form-control",:placeholder=>"Email Address",:required=>true,:autofocus=>true}) %>
     <%= text_field_tag("firstname",nil,{:class=>"form-control",:placeholder=>"First Name",:required=>true}) %>
     <%= text_field_tag("username",nil,{:class=>"form-control",:placeholder=>"Username",:required=>true}) %>
     <%= password_field_tag("password",nil,{:class=>"form-control",:placeholder=>"Password",:required=>true}) %>
     <%= password_field_tag("confirm-password",nil,{:class=>"form-control",:placeholder=>"Confirm Password",:required=>true}) %>
     <br/>
     <%= submit_tag("Register", {:class=>"btn btn-lg btn-primary btn-block"}) %>
     <%=link_to "Back to Login", login_url, {:class=>"btn btn-lg btn-block btn-default"}%>
<% end %>